package com.example.kuaizu.job;

import com.example.kuaizu.service.InCleanProjectRemOveService;
import com.example.kuaizu.service.imp.CleanProjectRemOveService;
import io.swagger.models.auth.In;
import lombok.RequiredArgsConstructor;
import lombok.extern.log4j.Log4j2;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author: wangmx15
 * @date: 2025/10/4
 **/
@Component
@RequiredArgsConstructor
@Log4j2
public class CleanProjectRemOveJob extends BaseJob{
    private final InCleanProjectRemOveService cleanProjectRemOveService;
    @Override
    void doExecute() {
        //删除订阅消息表中数据
        cleanProjectRemOveService.CleanProjectRemOveJob();
    }

    /**
     * 移除项目id相关联的数据
     */
    @Scheduled(cron = "0 20 1 * * *")
    public void CleanProjectRemOveJob() {
        this.execute();
    }
}
